// 学习 Printf 的用法吧
#include <stdio.h>

int main()
{
  int intnum1 = 123;
  int intnum2 = 456;

  float floatnum1 = 123.1;
  float floatnum2 = 123.11;
  float floatnum3 = 123.44444444444444;

  double doublenum1 = 123.11;
  double doublenum2 = 123.1123123;
  double doublenum3 = 123.11325443645764532;

  char chartype1[40] = "asdasd";
  char chartype2[40] = "asdasdasdas";

  

  printf("1--->test printf\n");
  printf("序 号---Name-------format----: ---------value-----------Address\n");
  printf("1      123        [d  ]     : %14d %14p\n", 123);
  printf("2      123.1      [f  ]     : %14f %14p\n", 123.1);
  printf("3      float      [.2f]     : %14.2f   \n", 123.1);
  printf("4      double     [.3f]     : %14.3f   \n", 123.1);
  printf("5      double     [f  ]     : %14f     \n", 123.1);
  printf("6      Char       [c  ]     : %14c     \n", 'c');
  printf("7      String     [s  ]     : %14s     \n", "asd");
  printf("8      Address    [s  ]     : %14s     \n", "asd");

  return 0;
}